package com.hz.ruoyiquality.api.service;


import com.hz.rouyigonggong.domain.dto.LgOutOrderDTO;
import com.hz.ruoyiquality.domain.dto.LgInboundOrderDTO;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ruoyi-lgorder",path = "/api")  // 指定微服务名称和接口路径
public interface QuelityService {

    @PostMapping("/edit")   // 这里要匹配目标微服务的接口路径
    public AjaxResult edit(@RequestBody LgInboundOrderDTO order);

    // 根据订单编号  获取订单信息
    @GetMapping(value = "/getInfo")
    public LgInboundOrderDTO getInfo(@RequestParam("orderNumber") Integer orderNumber);

    //出库订单修改状态
    @PostMapping("/editoutorder")
    public AjaxResult editoutorder(@Validated @RequestBody LgOutOrderDTO orderDTO);


}
